import request from '@/utils/request'

// 查询盒中档案信息列表
export function listRoomArchive(query) {
  return request({
    url: '/archive/roomArchive/list',
    method: 'get',
    params: query
  })
}

// 查询盒中档案信息详细
export function getRoomArchive(id) {
  return request({
    url: '/archive/roomArchive/' + id,
    method: 'get'
  })
}

// 新增盒中档案信息
export function addRoomArchive(data) {
  return request({
    url: '/archive/roomArchive',
    method: 'post',
    data: data
  })
}

// 修改盒中档案信息
export function updateRoomArchive(data) {
  return request({
    url: '/archive/roomArchive',
    method: 'put',
    data: data
  })
}

// 删除盒中档案信息
export function delRoomArchive(id) {
  return request({
    url: '/archive/roomArchive/' + id,
    method: 'delete'
  })
}
